package cn.web.demo.mapper;

import cn.web.demo.model.CourseOrder;
import cn.web.demo.model.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    public User findByUsername(String username);

    /**返回记录数据*/
    public int findUserByMap(Map<String,Object> map);
    /** 返回数据列表*/
    public List<User> findListByMap(Map<String,Object> map);

    public void insert(User user);

    public void insertUserAndRoleId(Integer user_id,Integer roleId);

    public User findUserAndRolesByUserId(Integer id);

    public void delectUserRoles(Integer id);

    public void UpdateUser(User user);

}
